package com.long1008.mapper;

import com.long1008.pojo.Hr;
import com.long1008.pojo.MsgContent;
import com.long1008.pojo.SysMsg;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysMsgMapper {

    int sendMsg(MsgContent msg);

    Long getSysMsgCount(@Param("hrid") Long hrid);

    int addMsg2AllHr(@Param("hrs") List<Hr> hrs, @Param("mid") Long mid);

    List<SysMsg> getSysMsg(
            @Param("page") Integer page,
            @Param("size") Integer size,
            @Param("hrid") Long hrid);

    int markRead(@Param("flag") Long flag, @Param("hrid") Long hrid);
}
